import { createRouter, createWebHistory } from 'vue-router'
import Login from '../views/Login.vue'
import index from '../views/index.vue'
// 用户
import Home from "../views/user/Home"
import weight from "../views/user/weight"
import liushui from "../views/user/liushui"
import touzi from "../views/user/touzi"
import zichan from "../views/user/zichan"





const routes = [
  {
    path: '/',   
    name: 'Login',  
    component: Login   
  },
  {
    path: '/index', 
    name: 'index',  
    component: index   
  },
  {
    path: '/home',   
    name: 'Home', 
    component: Home,
    
  },
  {
    path: '/weight',   
    name: 'weight', 
    component: weight   
  },
  {
    path: '/liushui',   
    name: 'liushui', 
    component: liushui   
  },
  {
    path: '/touzi',   
    name: 'touzi', 
    component: touzi   
  },
  {
    path: '/zichan',   
    name: 'zichan', 
    component: zichan   
  },
  



  ]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
